Hệ thống tạo mã vạch trong PHP bằng mã nguồn

1 <html>
2 <head>
3 <style>
4 p.inline {display: inline-block;}
5 span { font-size: 13px;}
6 </style>
7 <style type=
"text/css" media="print">
8     @page
9     {
10         size: auto;
/* auto is the initial value */
11         margin: 0mm;
/* this affects the margin in the printer settings */
12
13     }
14 </style>
15 </head>
16 <body onload=
"window.print();">
17     <div style=
"margin-left: 5%">
18         <?php
19         include
'barcode128.php';
20         $product = $_POST[
'product'];
21         $product_id = $_POST[
'product_id'];
22         $rate = $_POST[
'rate'];
23
24         
for($i=1;$i<=$_POST['print_qty'];$i++){
25             echo
"<p class='inline'><span ><b>Item: $product</b></span>".bar128(stripcslashes($_POST['product_id']))."<span ><b>Price: ".$rate." </b><span></p>&nbsp&nbsp&nbsp&nbsp";
26         }
27
28         ?>
29     </div>
30 </body>
31 </html>


Gõ tìm kiếm nhanh...